﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework
{
    public class TemplateFilters
    {
        public static string Text(bool? input, string trueText, string falseText, string nullText)
        {
            if (input == null) return nullText;
            return input == true ? trueText : falseText;
        }
        public static string Text(bool input, string trueText, string falseText)
        {
            return input ? trueText : falseText;
        }
    }
}
